import { useCookies } from '@vueuse/integrations/useCookies'

// usevue中useCookies的调用
const cookie = useCookies()

const TokenKey = 'admin-token'

// 存储token
export function setToken(token:string){
  return cookie.set(TokenKey,token)
}

// 获取token
export function getToken(){
  return cookie.get(TokenKey)
}

// 清除token
export function removeToken(){
  return cookie.remove(TokenKey)
}